﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VirtualTournaments.Business.Tournaments;

namespace VirtualTournaments.Business.Bets
{
	public class TournamentPodiumBetTarget : BetTarget
	{
		public virtual Tournament Tournament { get; protected set; }

		public virtual Podium Podium { get; protected set; }

		public TournamentPodiumBetTarget(Tournament tournament, Podium podium)
		{
			this.Tournament = tournament;
			this.Podium = podium;
		}
        
		public override bool Occurs()
		{
			return 
            this.Tournament.First.Equals(this.Podium.First) &&
				this.Tournament.Second.Equals(this.Podium.Second) &&
				this.Tournament.Third.Equals(this.Podium.Third);
		}
	}
}
